package com.linewow.xhyy.nihaonew.entity.data;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by LXR on 2016/9/27.
 */
public class NewTopicData implements Parcelable {
    public String subject;
    public List<String>paths;
    public String voicePath;
    public int voiceLength;
    public String website;
    public String pathsJson;
    public String location;


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.subject);
        dest.writeStringList(this.paths);
        dest.writeString(this.voicePath);
        dest.writeInt(this.voiceLength);
        dest.writeString(this.website);
        dest.writeString(this.pathsJson);
        dest.writeString(this.location);
    }

    public NewTopicData() {
    }

    protected NewTopicData(Parcel in) {
        this.subject = in.readString();
        this.paths = in.createStringArrayList();
        this.voicePath = in.readString();
        this.voiceLength = in.readInt();
        this.website = in.readString();
        this.pathsJson = in.readString();
        this.location=in.readString();
    }

    public static final Parcelable.Creator<NewTopicData> CREATOR = new Parcelable.Creator<NewTopicData>() {
        @Override
        public NewTopicData createFromParcel(Parcel source) {
            return new NewTopicData(source);
        }

        @Override
        public NewTopicData[] newArray(int size) {
            return new NewTopicData[size];
        }
    };
}
